﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common.Master" AutoEventWireup="true"
    CodeBehind="ResourceRequestRecordTree.aspx.cs" Inherits="Web.Views.ResourceRequestManage.ResourceRequestRecordTree" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../../Javascript/jquery.query.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            //加载公司通讯录Tree
            var timestamp = new Date().getTime();
            var statusID = $.query.get("statusID");
            $('#treeArchiveMenu').tree({
                method: "get",
                lines: true,
                idFiled: "id",
                textFiled: "text",
                parentField: "pid",
                cascadeCheck: false,
                url: "../SingleWellManage/SingleWellTreeHandler.ashx?archivemenu=yes&timestamp=" + timestamp + "",
                onBeforeExpand: function (node, param) {
                },
                onLoadSuccess: function (node, data) {
                    window.parent.document.getElementById('Iframe1').src = "../SystemLogin/loadingpage.aspx?Menu_URL=../ResourceRequestManage/ResourceRequestRecordList.aspx?wellType=" +data[0].children[0].children[0].id;
                },
                onSelect: function (node) {
                    if ($('#treeArchiveMenu').tree('isLeaf', node.target)) {
                        window.parent.document.getElementById('Iframe1').src = "../SystemLogin/loadingpage.aspx?Menu_URL=../ResourceRequestManage/ResourceRequestRecordList.aspx?wellType=" + node.id;
                    }
                }
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <ul id="treeArchiveMenu">
    </ul>
</asp:Content>
